package org.zjx.command.service;

import org.zjx.command.Command;
import org.zjx.core.IWindow;
import org.zjx.entity.Race;
import org.zjx.entity.Sects;
import org.zjx.state.AccountState;
import org.zjx.state.StateManager;

public class AccountCommand extends Command {
    public AccountCommand(IWindow targetWindow,  StateManager stateManager) {
        super(targetWindow, false, stateManager);
    }

    @Override
    protected void doExecute() throws Exception {
        AccountState accountState = new AccountState();
        accountState.setAccountName("rlz20250703@163.com");
        accountState.setPassword("QQqq123456");
        accountState.setMainLocation("187,336");
        accountState.setSubLocation("120,426");
        accountState.setPlayerId("20063805");
        accountState.setRace(Race.XIAO_YAO_SHENG);
        accountState.setSect(Sects.LONG_GONG);
        accountState.setUsername("法厄夫为人父");
        stateManager.updateState(AccountState.class, accountState);
    }
}
